#include <json/json.h>
#include <iostream>


void test_env()
{
    std::cout << ">>>" << __func__ << std::endl;
    std::cout << "sizeof(void*)=" << sizeof(void*) << std::endl;

// #ifdef _MSC_VER
#if defined(_MSC_VER) // msvc的判断方式
    std::cout << "_MSC_VER=" << _MSC_VER << std::endl;
#else
    std::cout << "_MSC_VER undefined" << std::endl;
#endif
    // std::cout << "_MSC_VER:" << _MSC_VER << std::endl;

#ifdef _DEBUG
    std::cout << "Debug version" << std::endl;
#else
    std::cout << "Release version" << std::endl;
#endif
}


void test_jsoncpp(void)
{
    std::cout <<">>>" << __func__ << std::endl;

    Json::Value up;
    up["name"]="cuber-lotus";
    up["bilibili"]="https://space.bilibili.com/8172252";
    std::cout << "up:" << up << std::endl;
}

int main(void)
{
    test_env();
    test_jsoncpp();

    system("pause");
}